Current Location: Home> Function Categories> sin

sin

Sine
Name:sin
Category:math
Programming Language:php
One-line Description:Sine.

Definition and usage

sin() function returns the sine of a number.

Example

In this case, we will calculate the sine of different values:

 <?php
echo ( sin ( 3 ) ) ;
echo ( sin ( - 3 ) ) ;
echo ( sin ( 0 ) ) ;
echo ( sin ( M_PI ) ) ;
echo ( sin ( M_PI_2 ) )
?>

Try it yourself

grammar

 sin ( x )
parameter describe
x Required. A number.

illustrate

sin() returns the sine value of parameter x . The unit of parameter x is radians.

Similar Functions
  • Ancient sine asin

    asin

    Ancientsine
  • Logarithm with base 10 log10

    log10

    Logarithmwithbase10
  • Arctangle of two parameters atan2

    atan2

    Arctangleoftwoparame
  • Sow a better random number generator seed mt_srand

    mt_srand

    Sowabetterrandomnumb
  • Convert decimal to hexadecimal dechex

    dechex

    Convertdecimaltohexa
  • Generate better random numbers mt_rand

    mt_rand

    Generatebetterrandom
  • Further method to sort ceil

    ceil

    Furthermethodtosort
  • Antihyperbolic cosine acosh

    acosh

    Antihyperboliccosine
Popular Articles